import request from '../../request'

// 查询费用要素
export function getCostElement(params) {
  return request({
    url: 'costElement/getCostElement',
    method: 'GET',
    params
  })
}

// 查询费用明细
export function getCostDetail(params) {
  return request({
    url: 'costElement/getCostDetail',
    method: 'GET',
    params
  })
}


// 获取字典数据
export function getEnumDetailSource(params) {
  return request({
    url: 'bdEnumdetail/getEnumDetailSource',
    method: 'POST',
    data: params
  })
}

// 获取字典数据-分页
export function getEnumDetailSourcePage(params) {
  return request({
    url: 'bdEnumdetail/getEnumDetailSourcePage',
    method: 'POST',
    data: params
  })
}



// 获取数据层
export function getOrganizationSource(params) {
  return request({
    url: 'BdOrganization/getOrganizationSource',
    method: 'POST',
    data: params
  })
}

// 添加要素
export function addEnumDetail(params) {
  return request({
    url: 'bdEnumdetail/addEnumDetail',
    method: 'POST',
    data: params
  })
}

// 编辑要素
export function modifyEnumDetail(params) {
  return request({
    url: 'bdEnumdetail/modifyEnumDetail',
    method: 'POST',
    data: params
  })
}

export function getLikeEnumDetailSource(params) {
  return request({
    url: 'bdEnumdetail/getLikeEnumDetailSource',
    method: 'POST',
    data: params
  })
}

